package org.genntii.smdomain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@TableName("Article_Like")
@NoArgsConstructor
@AllArgsConstructor
public class ArticleLike {
    private Long id;
    private Long articleId;
    private Long userId;
    @TableField("`like`")
    private byte like;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;
}
